using System;
using System.Collections.Generic;
namespace DalatCooking.Core
{
    public abstract class IMenuRepository
    {
        public abstract bool Insert(Menu entity);
        public abstract bool Update(Menu entity);
        public abstract bool Delete(Menu entity);
        public abstract bool Delete(int id);
        public abstract List<Menu> FindAll();
        public abstract Menu FindById(int id);
        public abstract Menu Single(int id);
        public abstract Menu FindByName(string name);
        public abstract List<Menu> FindByGroup(string uniqueName);
        public abstract List<Menu> FindByGroupId(int groupId);
        public abstract List<Menu> FindByParentId(int parentId);
        public abstract List<Menu> PagingSql(int pageSize, int pageNum, out int totalRowCount);
        public abstract List<Menu> PagingLinq(int pageSize, int pageNum, out int totalRowCount);
        public abstract bool SetActive(int id);
        public abstract bool SetSortIndex(int id, int isup);
        public abstract bool RemoveSelectedItem(int id);
        public abstract bool RemoveAll();
        public abstract bool RestoreSelectedItem(int id);
        public abstract bool RestoreAll();
    }
}